const Express = require('express')
const {port} = require('./config')
const bodyParser = require('body-parser')
require('./database')
const app= Express()
app.use(bodyParser.json());
app.use('/api',require('./router'))
app.listen(port,()=>{
    console.log('listening on port ' + port) //  console output              
})